<?php

class ContentTable extends Doctrine_Table
{
    public function getByCategoryId($id)
    {
        $query = Doctrine_Query::create()->addFrom('Content')->addWhere('category_id = ?', $id);
        return $query->fetchOne();
    }
}
